<!DOCTYPE HTML>
<html>
    <head>
        <title>{{$title}}</title>
        <meta charset="UTF-8">
        <style>
            .pagination li{
                list-style: none;
                float: left;
                letter-spacing: 25px;
            }
            .pagination li a{
                text-decoration: none;
            }
            .pagination{
                margin-left: 45%;
            }
        </style>
    </head>
    <body>
        <center>
            @include('stu.menu')
            <table border="1" width="760px">
                <tr>
                    <th>序号</th>
                    <th>姓名</th>
                    <th>年龄</th>
                    <th>性别</th>
                    <th>班级</th>
                    <th>操作</th>
                </tr>
                @foreach($list as $v)
                    <tr align="center">
                        <td>{{$v->id}}</td>
                        <td>{{$v->name}}</td>
                        <td>{{$v->age}}</td>
                        <td>{{$v->sex}}</td>
                        <td>{{$v->classid}}</td>
                        <td>
                            <a href="{{url('del')}}/{{$v->id}}">删除</a>&nbsp;&nbsp;
                            <a href="{{url('editview')}}/{{$v->id}}">编辑</a>
                        </td>
                    </tr>

                @endforeach
            </table>
            {{$list->links()}}
            <br>
            <!--视图的路径写法-->
            <img src="{{URL::asset('images/Meinv070.jpg')}}" width="750px" height="450px">
        </center>

    </body>

</html>